package com.example.websockettest.webSocket.utils;

import com.example.websockettest.webSocket.mapper.*;
import com.example.websockettest.webSocket.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 操作数据库的父级都写在这里
 * */
@Component
public class 通用操作数据库 {
    protected static GptMapper gptMapper;
    protected static LoginService loginService;
    protected static WenzhangMapper wenzhangMapper;
    protected static GameUserMapper gameUserMapper;
    @Autowired
    public void setGptMapper(GptMapper gptMapper){
        通用操作数据库.gptMapper=gptMapper;
    }
    @Autowired
    public void setLoginService(LoginService loginService){
        通用操作数据库.loginService = loginService;
    }
    @Autowired
    public void setGameUserMapper(GameUserMapper gameUserMapper){
        通用操作数据库.gameUserMapper = gameUserMapper;
    }
    //------------------end
    @Autowired
    public void setWenzhangMapper(WenzhangMapper wenzhangMapper){
        通用操作数据库.wenzhangMapper=wenzhangMapper;
    }
}
